//
//  TwoTableViewCell.m
//  UI13_豆瓣活动作业
//
//  Created by LHY on 15/12/30.
//  Copyright © 2015年 Lanou 32 李昊宇. All rights reserved.
//

#import "TwoTableViewCell.h"

@implementation TwoTableViewCell


- (void)dealloc
{
    [_addressLabel release];
    [_cinemaNameLabel release];
    [_telephone release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self cinema];
    }
    return self;
}

- (void)cinema {
    UIImageView *image1 = [[UIImageView alloc] initWithFrame:CGRectMake(5, 5, 365, 150) ];
    
    image1.image = [UIImage imageNamed:@"/Users/dllo/Desktop/UI豆瓣2015到2016跨年作业/UI豆瓣2015到2016跨年作业/bg_eventlistcell.png"];
    [self.contentView addSubview:image1];
    
    self.addressLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_addressLabel];
    self.cinemaNameLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_cinemaNameLabel];
    self.telephone = [[UILabel alloc] init];
    [self.contentView addSubview:_telephone];


}

- (void)layoutSubviews {
    [super layoutSubviews];
    _addressLabel.frame = CGRectMake(10, 10, 300, 50);
    _addressLabel.font = [UIFont boldSystemFontOfSize:25];
    _addressLabel.numberOfLines = 25;
    _cinemaNameLabel.frame = CGRectMake(10, 60, 300, 30);
    _cinemaNameLabel.numberOfLines = 25;
    
    _telephone.frame = CGRectMake(10, 100, 300, 30);
    




}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
